﻿
//    using ChainStock.Controls;
using System;
using System.Data;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;

public partial class MemRechargeMoney : PageBase
{


    protected void Page_Load(object sender, EventArgs e)
    {
        if (!base.IsPostBack)
        {
            if (base.Request.QueryString["MemCard"] != null)
            {
                this.MemCard.Value = base.Request.QueryString["MemCard"];
            }
            this.lblAccount.InnerText = base.curParameter.strMemRechargePrefix + DateTime.Now.ToString("yyMMddHHmmssffff");
            this.lblRechargeTime.InnerText = DateTime.Now.ToString();
            this.lblRechargeUSer.InnerText = PubFunction.UserIDTOName(base._UserID);
            PubFunction.Get_PrintTitle(ref this.lblPrintTitle, ref this.lblPrintFoot, base._UserShopID);
            this.chkSMS.Checked = PubFunction.curParameter.bolMoneySms && base.curParameter.bolAutoSendSMSByMemRecharge;
            this.lblIsSMS.Style.Add("display", (base.curParameter.bolMoneySms && base.curParameter.bolAutoSendSMSByMemRecharge) ? "\"\"" : "none");
            this.chkIsSMS.Checked = PubFunction.curParameter.bolSms;
            this.chkPrint.Checked = PubFunction.curParameter.bolAutoPrint;
            this.PointNum.Value = PubFunction.GetPointNum("HYCZ");
            this.ucMemberSearch.BolSenseICCard = base.curParameter.bolSenseiccard;
            this.ucMemberSearch.BolContactICCard = base.curParameter.bolContacticcard;

            Get_ParameterList();
        }
    }


    private void Get_ParameterList()
    {
        Chain.BLL.Activity ActivityBll = new Chain.BLL.Activity();
        DataTable dt = ActivityBll.ActivityShow();

        foreach (DataRow dr in dt.Rows)
        {

            ActivityID.Items.Add(new ListItem(dr["Name"].ToString(), dr["ID"].ToString()));

        }

    }
}


